#ifndef INTERRUPTS_H
#define INTERRUPTS_H

#include <types.h>

struct interrupt_info
{
    uint32 ds;
    uint32 edi, esi, ebp, esp, ebx, edx, ecx, eax;
    uint32 int_no, err_code;
    uint32 eip, cs, eflags, useresp, ss;
};

typedef void (*interrupt_handler)(struct interrupt_info);
void register_irq(uint8 int_no, interrupt_handler handler);
 
#endif
